package org.csu.mall.controller;

import org.csu.mall.common.UniformResponse;
import org.csu.mall.service.IBankService;
import org.csu.mall.service.IPayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/payinfo/")
public class PayInfoController {
    @Autowired
    private IPayInfoService payInfoService;

    @PostMapping("get_status")
    @ResponseBody
    public UniformResponse getStatus(){
        UniformResponse response=payInfoService.getStatus();
        return response;
    }
}
